package com.kwq.designPattern.construct.director;

/**
 * @author kangwanqiang
 * @date 2021/2/7
 * @description 具体的装饰器，车不仅可以drive，还可自燃，所以加入了fire的功能
 */
public class FireCarDirector extends CarDirector{

    public FireCarDirector(Car car) {
        super(car);
    }

    @Override
    public void drive(){
        fire();
        car.drive();

    }
    private void fire(){
        System.out.println("着火啦！！！！！");
    }
}
